import {request} from "@/utils/request/request";

/**
 *  我的 - 手工记账
 */
export class BookkeepingApi {

    /**
     *  分页查询
     */
    static page(data) {
        return request({
            url: '/ctApi/bookkeeping/page',
            method: 'get',
            data: data
        })
    }

    /**
     *  新增
     */
    static add(data) {
        return request({
            url: '/ctApi/bookkeeping/add',
            method: 'post',
            data: data
        })
    }

    /**
     *  编辑
     */
    static edit(data) {
        return request({
            url: '/ctApi/bookkeeping/edit',
            method: 'post',
            data: data
        })
    }

    /**
     *  详情
     */
    static detail(data) {
        return request({
            url: '/ctApi/bookkeeping/detail',
            method: 'get',
            data: data
        })
    }

    /**
     *  删除
     */
    static delete(data) {
        return request({
            url: '/ctApi/bookkeeping/delete',
            method: 'post',
            data: data
        })
    }

    /**
     *  项目列表
     */
    static bookkeepingItemList(data) {
        return request({
            url: '/ctApi/bookkeepingItem/list',
            method: 'get',
            data: data
        })
    }

    /**
     *  车辆列表
     */
    static vehicleList(data) {
        return request({
            url: '/ctApi/vehicle/list',
            method: 'get',
            data: data
        })
    }

}